package com.kitty.listener.event;

import com.kitty.game.role.model.Role;
import com.kitty.game.equip.message.ReqUpgradeEquip;
import com.kitty.listener.BasePlayerEvent;
import com.kitty.listener.EventType;
import lombok.Getter;

/**装备打造事件*/
@Getter
public class UpgradeEquipEvent extends BasePlayerEvent {
    private ReqUpgradeEquip upgradeEquip;
    private Role role;

    public UpgradeEquipEvent(EventType evtType, Role role, ReqUpgradeEquip upgradeEquip) {
        super(evtType, role);
        this.upgradeEquip = upgradeEquip;
        this.role = role;
    }

    public Role getRole() {
        return role;
    }

    /**取打造的物品位置  Todo 注意 不一定是位置 有的类型可能是其他的*/
    public int getUpgradePos() {
        return upgradeEquip.getPos();
    }
    /**取打造的参数*/
    public String getUpgradeParam(){
        return upgradeEquip.getParam();
    }
    /**取打造的类型*/
    public byte getUpgradeType(){
        return upgradeEquip.getType();
    }
}
